package com.tool;

import java.awt.Dimension;
import java.awt.Point;
import java.awt.Toolkit;

public class WindowUtil {
	private static Dimension screenSize = Toolkit.getDefaultToolkit()
			.getScreenSize();
	public static Point setLocation(int width,int heigth){
		int x=(int)((screenSize.getWidth()-width)/2);
		int y=(int)((screenSize.getHeight()-heigth)/2);
		return new Point(x,y);
	}

}
